/**
 * 获取信息
 * @returns {string}
 */


 export const getLocalStorage = (name) => {
     return JSON.parse(localStorage.getItem(name))
 } 
 

 /**
  * 设置信息
  * @param {object} userInfo
  */

export const setLocalStorage = (name, userInfo) =>{
    return localStorage.setItem(name,JSON.stringify(userInfo))
}


/**
 * 删除信息
 */
export const deLcalStorage = (name) => {
    return localStorage.removeItem(name)
}

